<?php 
echo $this->articleForm->render();

$this->headScript()->appendFile('/js/tiny_mce/tiny_mce_gzip.js');

$this->headScript()->captureStart() ?>
tinyMCE_GZ.init({
	//plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,'+ 
	//    'searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras',
	plugins: 'paste',
	themes : 'advanced',
	languages : 'en',
	disk_cache : true,
	debug : false
});<?php $this->headScript()->captureEnd();

$this->headScript()->captureStart() ?>
	tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		theme_advanced_buttons1 : "formatselect,bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,link,unlink,undo,redo,cleanup,code",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
		
		plugins : "paste",
		theme_advanced_buttons1_add : "pastetext,pasteword,selectall",
		paste_create_paragraphs : true,
		paste_create_linebreaks : true,
		paste_use_dialog : true,
		paste_auto_cleanup_on_paste : true,
		paste_convert_middot_lists : false,
		paste_unindented_list_class : "unindentedList",
		apply_source_formatting : true,
		object_resizing : false,
		theme_advanced_resizing : true,
		verify_css_classes : true,
		remove_trailing_nbsp : true,
		doctype : '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
		theme_advanced_blockformats : "p,h2,h3,h4,code"
});<?php $this->headScript()->captureEnd();
